package com.tang.model.guava;

import com.google.common.eventbus.EventBus;

import java.awt.*;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/6 20:54
 * @Desc
 * @Remarks
 */
public class Test {

    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        eventBus.register(new PersonEvent());
        Person person = new Person();
        person.setName("zhangsan");
        person.setAge(30);
        eventBus.post(person);
    }
}
